#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include<math.h>

int main()
{
    float a = 0.0f;
    float b = 0.0f;
    float c = 0.0f;


    while (scanf("%f %f %f", &a, &b, &c) != EOF)
    {
        if (a == 0)
        {
            printf("Not quadratic equation\n");
        }
        else
        {
            float d = b * b - 4 * a * c;
            float e = (-b + sqrt(b * b - 4 * a * c)) / 2.0 / a;
            float f = (-b - sqrt(b * b - 4 * a * c)) / 2 / a;
            if (d == 0)
            {
                printf("x1=x2=%.2f\n", e + 0);
            }
            else if (d > 0)
            {
                printf("x1=%.2f;x2=%.2f\n", f, e);
            }
            else
            {
                printf("x1=%.2f-%.2fi;x2=%.2f+%.2fi\n", -b / (2 * a), sqrt(-d) / (2 * a), -b / (2 * a), sqrt(-d) / (2 * a));
            }
        }
    }
    return 0;
}